package com.example.cobodynamicproxydemo.config;

import com.example.cobodynamicproxydemo.service.UserApiDemoClient;
import com.example.cobodynamicproxydemo.service.UserApiDemoClientImpl;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

@Configuration
public class UserConfiguration {


    /**
     * 向spring注入三方API
     *
     * @return UserApiDemoClient
     */
    @Bean
    public UserApiDemoClient userApiDemoClient() {
        return new UserApiDemoClientImpl();
    }

}
